<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="css/swiper-3.4.0.min.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/swiper-3.4.0.jquery.min.js"></script>

</head>

<body>
	<div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="images/1.jpg" /></div>
        <div class="swiper-slide"><img src="images/2.jpg" /></div>
        <div class="swiper-slide"><img src="images/3.jpg" /></div>
    </div>
    <!-- 如果需要分页器 -->
    <div class="swiper-pagination"></div>
    
    <!-- 如果需要导航按钮 -->
   <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>
    
      <div class="swiper-scrollbar"></div>
    <!-- 如果需要滚动条 -->
   
</div>
<script>        
  var mySwiper = new Swiper ('.swiper-container', {
    direction: 'horizontal', //方向
    loop: true, //是否循环
    autoplay: 1000,
    zoom : true,// 点击放大 ，手机上双指
    // 如果需要分页器
    pagination: '.swiper-pagination',
    
    // 如果需要前进后退按钮
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    
    // 如果需要滚动条
   
    scrollbar: '.swiper-scrollbar',
  
  })        
  </script>
</body>
</html>
